<template>
</template>

<script>

export default {

    methods: {
        // 改变组件中的值
        triggerAddNewPerson() {
            this.personEditMode = "add";
            this.$refs.personInfo.form = {};
            this.$refs.personInfo.form.status = "0";
            this.personInfoFlag = true;
        },

        confirmMsg() {
            // 警示框
            this.$pop({
                type: 'warning',
                message: '警示提示'
            })

            // 确认框
            this.$confirm({
                word: '是否确认删除?',
                callback: (isConfirm) => {
                    if (isConfirm) {
                        this.$pop('成功!')
                    } else {
                        this.$pop('取消!');
                    }
                }
            })
        },
    }

}


</script>
